package com.newcoin.xgb.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class WithdrawDto {
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @NotBlank(message = "令牌不能为空")
    private String token;

    @NotNull(message = "请输入金额")
    private BigDecimal amount;

    @NotNull(message = "请输入银行账户信息ID")
    private String bankInfoId;

    @NotBlank(message = "请输入交易密码")
    private String payPwd;

}
